home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / POPDIRE.BAT < prev    next >
DOS Batch File  |  1990-01-14  |  590b  |  27 lines

  1. echo off
  2. echo Nonresident popdir (Restores the pushed directory)
  3. echo By Prof. Timo Salmi, ts@chyde.uwasa.fi, 14-Jan-90
  4. echo.
  5.  
  6. rem It is advisable to have popdire.bat at path
  7. rem See pushdire.bat for more instructions
  8.  
  9. if "%pushdriv%"=="" goto _err
  10. if "%pushdire%"=="" goto _err
  11.  
  12. %pushdriv%
  13. cd %pushdire%
  14. cd
  15. goto _out
  16.  
  17. :_err
  18. echo Error: No direcectory name has been pushed!
  19. goto _out
  20.  
  21. rem The commands below release the relevant environment variables
  22. rem If you omit them, popdire can be used without pushdire in between
  23. :_out
  24. set pushdriv=
  25. set pushdire=
  26. echo on
  27.